package com.xhorse.lockplatform.comm.util;

import org.codehaus.jackson.map.DeserializationConfig;
import org.codehaus.jackson.map.ObjectMapper;

/**
 * @author Tom
 */
public interface JsonSupport {
    String RISK_SUCCESS = "{\"retCode\":\"000000\",\"retData\":{},\"retMsg\":\"SUCCESS\"}";
    String RISK_FAILED = "{\"retCode\":\"000001\",\"retData\":{},\"retMsg\":\"FAIL\"}";

    /**
     * ObjectMapper是线程安全的
     */
    ObjectMapper MAPPER = new ObjectMapper().configure(DeserializationConfig.Feature
            .FAIL_ON_UNKNOWN_PROPERTIES, false);
}
